package java_012_zuoye01;

import java.util.Random;

public class java09 {
	public static void main(String[] args) {
		int[] arr={1,2,3,4,5};
		Random r = new Random();
		for (int i=0;i<arr.length;i++){
			int ran = r.nextInt(arr.length);
			int temp=arr[i];
			arr[i] = arr[ran];
			arr[ran] = temp;
		}
		for (int i=0;i<arr.length;i++){
			System.out.print(arr[i]+" ");
		}
	}
}
